package ex2.employee;

public class CEmployeeCSVPrinter {
	
	public void printRegularEmployee(IEmployee employee){
		
		String tAnswer = employee.getEmployeeCode();
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getUsername());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getFirstName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getLastName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(Double.toString(employee.getSalary()));
		
		System.out.println(tAnswer);	
	}
	
	public void printManager(IEmployee employee){
		
		String tAnswer = employee.getEmployeeCode();
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getUsername());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getFirstName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getLastName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(Double.toString(employee.getSalary()));
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getSubordinates());
		
		System.out.println(tAnswer);
	}
	
	public void printSpecialist(IEmployee employee){
		
		String tAnswer = employee.getEmployeeCode();
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getUsername());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getFirstName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getLastName());
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(Double.toString(employee.getSalary()));
		tAnswer = tAnswer.concat(", ");
		tAnswer = tAnswer.concat(employee.getEquipment());
		
		System.out.println(tAnswer);
		
	}

}
